﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="SchoolsList.aspx.cs" Inherits="Sagacity.NC.Web.BasicSettings.SchoolsList" %>

<%@ Register Src="~/Form/TabFormCommon.ascx" TagName="TabFormCommon" TagPrefix="uc1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>学校信息列表</title>
    <link href="../../resources/css/examples.css" rel="stylesheet" type="text/css" />
 
    <script type="text/javascript" language="javascript">
        /*-----显示方法名称，设置时在TabFormCommon1中调用，指定GridPanel行单击详细信息列和双击时应该调用的方法-----*/
        var showFunctionName = 'showSchoolDetailInfo()';

        /*-----TabFormCommon1中调用的方法-----*/
        function showSchoolDetailInfo() {
            var xmlTabInfo = "<root><tab id='orderTab32' name='学校详细信息' url='SchoolDetailInfo.aspx'></tab></root>";
            self.parent.addTabs1(self.parent.tabPersonInfoTabs, xmlTabInfo, '', "ResourceId=" + document.getElementById("hidResourceId").value + "&SchoolId=" + Form$getKeyValue());
        }
        
        function refreshSchoolInfo(regionId){
            if(regionId == undefined)
                return;
      
            var filterstr = "REGION_ID$=$" + regionId;
            Form$SetFilters(filterstr);
            Form$ReloadData();
        }
    </script>
    <script type="text/javascript" language="javascript">
        /* -----------新增，设置新增加数据的时候跳转页面到下一级页面，并且给出的数据位空。-------------*/
        var showFunctionAdd = 'showPosFunctionAdd()';
        var showPosFunctionAdd = function()
        {
            var xmlTabInfo = "<root><tab id='orderTab32' name='学校详细信息' url='SchoolBaseInfo.aspx'></tab></root>";

            self.parent.addTabs1(self.parent.tabPersonInfoTabs, xmlTabInfo, '', "action=add&ResourceId=" + document.getElementById("hidResourceId").value + "&SchoolId=0&controlType=1");
             
        }
        
        function selChildsSetting(bool){
            selChilds = bool;
            self.parent.setTreeSelChilds(bool);
        }
        
        //当前是否是使用的默认资源
        function isDefaultResourceId(){
            return document.getElementById("hidCurrentResourceId").value == document.getElementById("hidDefaultResourceId").value;
        }

        function TestNumOnClick() {
            Ext.MessageBox.confirm('注意', '是否生成报名号？', function(btn) {
                if (btn == 'yes') {
                    Coolite.AjaxMethods.SerialNumOnClick({
                        success: function(result) {
                            if (result) {
                                Ext.Msg.alert("提示", "生成报名号成功！");
                            }
                            else
                                Ext.Msg.alert("提示", "生成报名号失败！");
                        }, eventMask: {
                            showMask: true,
                            msg: '正在执行...'
                        }, timeout: 60000
                    });
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hidResourceId" runat="server" Value="151" />

    <div>
        <!--配置信息-->        
        <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
        <ext:ViewPort ID="viewport1" runat="server">
            <Body>
                <uc1:TabFormCommon ID="TabFormCommon1" PageSize="0"  SureExport="true" runat="server" MenuId="1118" />
            </Body>
        </ext:ViewPort>
    </div>
    </form>
</body>
</html>